import Vue from 'vue'
import App from './App'
import url from 'common/api.js'
import store from './store'
import messages from './locale/index'
import Http from './common/http.js'
import VueI18n from 'vue-i18n'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// Vue.prototype.$api=api;

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$api = Http;
Vue.prototype.$url = url;

let i18nConfig = {
  locale: uni.getLocale(),
  messages
}

App.mpType = 'app'
Vue.use(VueI18n)
const i18n = new VueI18n(i18nConfig)
const app = new Vue({
	  i18n,
    ...App
})
app.$mount()
